package com.qf.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (BusRent)实体类
 *
 * @author makejava
 * @since 2021-11-26 11:30:41
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BusRent implements Serializable {
    private static final long serialVersionUID = -10353169315039791L;
    
    private String rentid;
    
    private Double price;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date begindate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date returndate;
    
    private Integer rentflag;
    
    private String identity;
    
    private String carnumber;
    
    private String opername;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createtime;


    public BusRent(String rentid, Date returndate, Integer rentflag) {
        this.rentid = rentid;
        this.returndate = returndate;
        this.rentflag = rentflag;
    }
}